<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="shortcut icon" href="../img/logo.png" type="image/x-icon" />
    <link rel="stylesheet" href="../css/common.css" />
    <link rel="stylesheet" href="../css/demo.css" />
</head>

<body>
    <div id="app"></div>

</body>
<script>
    //窗口资源加载结束
    //window.onload = function(){
    let app = document.querySelector('#app')
    console.log(app)
    //}
    window.onresize = function () {
        console.log(event)
        app.style.backgroundColor = "blue";
    }
</script>

</html>